//---------------------------------------------------------------------------

#ifndef vCamionH
#define vCamionH
//---------------------------------------------------------------------------
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
#include <Buttons.hpp>
#include <assert.h>

#include "pOperation.h"
//---------------------------------------------------------------------------
#define asMateriel(a)   dmKiloutou->tMateriel##a->AsString
#define nMateriel(a)   dmKiloutou->tMateriel##a->AsInteger
#define fMateriel(a)   dmKiloutou->tMateriel##a->AsFloat

#define nCamion(a)    dmKiloutou->tCamion##a->AsInteger
#define fCamion(a)    dmKiloutou->tCamion##a->AsFloat

//---------------------------------------------------------------------------
class CCamion;
//---------------------------------------------------------------------------
bool __fastcall GereCamion( TOperationSaisie nOpe );
//---------------------------------------------------------------------------

class TvSCamion : public TForm
{
    __published:	// Composants gérés par l'EDI
        TGroupBox *GroupBox1;
    TBitBtn *bbOk;
    TBitBtn *bbAnnuler;
        TLabel *Label1;
        TLabel *Label2;
        TLabel *Label3;
        TLabel *Label4;
        TLabel *Label5;
        TEdit *NomEdit;
        TEdit *DescriptionEdit;
        TEdit *PoidsTotalEdit;
        TEdit *PoidsTransportableEdit;
        TEdit *PrixEdit;
        void __fastcall bbOkClick(TObject *Sender);

    private:	// Déclarations utilisateur
        TOperationSaisie m_nOpe;
        void __fastcall Enregistrer( void );
        void __fastcall Modifier( void );
    public:		// Déclarations utilisateur
        __fastcall TvSCamion(TComponent* Owner, TOperationSaisie nOpe);
        void __fastcall Supprimer( void );
};
#endif
